package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZhengxieweiyuanpinyibiaoMapper;
import com.ruoyi.system.domain.Zhengxieweiyuanpinyibiao;
import com.ruoyi.system.service.IZhengxieweiyuanpinyibiaoService;

/**
 * 政协委员评价表Service业务层处理
 * 
 * @author Quilan
 * @date 2023-12-04
 */
@Service
public class ZhengxieweiyuanpinyibiaoServiceImpl implements IZhengxieweiyuanpinyibiaoService 
{
    @Autowired
    private ZhengxieweiyuanpinyibiaoMapper zhengxieweiyuanpinyibiaoMapper;

    /**
     * 查询政协委员评价表
     * 
     * @param id 政协委员评价表主键
     * @return 政协委员评价表
     */
    @Override
    public Zhengxieweiyuanpinyibiao selectZhengxieweiyuanpinyibiaoById(Long id)
    {
        return zhengxieweiyuanpinyibiaoMapper.selectZhengxieweiyuanpinyibiaoById(id);
    }

    /**
     * 查询政协委员评价表列表
     * 
     * @param zhengxieweiyuanpinyibiao 政协委员评价表
     * @return 政协委员评价表
     */
    @Override
    public List<Zhengxieweiyuanpinyibiao> selectZhengxieweiyuanpinyibiaoList(Zhengxieweiyuanpinyibiao zhengxieweiyuanpinyibiao)
    {
        return zhengxieweiyuanpinyibiaoMapper.selectZhengxieweiyuanpinyibiaoList(zhengxieweiyuanpinyibiao);
    }

    /**
     * 新增政协委员评价表
     * 
     * @param zhengxieweiyuanpinyibiao 政协委员评价表
     * @return 结果
     */
    @Override
    public int insertZhengxieweiyuanpinyibiao(Zhengxieweiyuanpinyibiao zhengxieweiyuanpinyibiao)
    {
        return zhengxieweiyuanpinyibiaoMapper.insertZhengxieweiyuanpinyibiao(zhengxieweiyuanpinyibiao);
    }

    /**
     * 修改政协委员评价表
     * 
     * @param zhengxieweiyuanpinyibiao 政协委员评价表
     * @return 结果
     */
    @Override
    public int updateZhengxieweiyuanpinyibiao(Zhengxieweiyuanpinyibiao zhengxieweiyuanpinyibiao)
    {
        return zhengxieweiyuanpinyibiaoMapper.updateZhengxieweiyuanpinyibiao(zhengxieweiyuanpinyibiao);
    }

    /**
     * 批量删除政协委员评价表
     * 
     * @param ids 需要删除的政协委员评价表主键
     * @return 结果
     */
    @Override
    public int deleteZhengxieweiyuanpinyibiaoByIds(Long[] ids)
    {
        return zhengxieweiyuanpinyibiaoMapper.deleteZhengxieweiyuanpinyibiaoByIds(ids);
    }

    /**
     * 删除政协委员评价表信息
     * 
     * @param id 政协委员评价表主键
     * @return 结果
     */
    @Override
    public int deleteZhengxieweiyuanpinyibiaoById(Long id)
    {
        return zhengxieweiyuanpinyibiaoMapper.deleteZhengxieweiyuanpinyibiaoById(id);
    }
}
